/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86156
 * Date: 2022-03-13
 * Time: 21:44
 */
public class TestDemo {
    public static void main(String[] args) {
        DoubleLinkedList doubleLinkedList = new DoubleLinkedList();
        doubleLinkedList.push_back(1);//1
        doubleLinkedList.display();
        doubleLinkedList.push_back(3);//1 3
        doubleLinkedList.display();
        doubleLinkedList.push_font(5);//5 1 3
        doubleLinkedList.display();
        doubleLinkedList.push_back(6);//5 1 3 6
        doubleLinkedList.display();
        doubleLinkedList.push_font(5);//5 5 1 3 6
        doubleLinkedList.display();
        System.out.println(doubleLinkedList.containsValue(9));
        System.out.println(doubleLinkedList.containsValue(1));
        doubleLinkedList.Insert(3, 2);//5 5 1 2 3 6
        doubleLinkedList.display();
        doubleLinkedList.removeByValue(2);//5 5 1 3 6
        doubleLinkedList.display();
        System.out.println(doubleLinkedList.size());
        doubleLinkedList.removeAllByValue(5);//1 3 6
        doubleLinkedList.display();
        doubleLinkedList.clear();
        System.out.println(doubleLinkedList.size());
        System.out.println(doubleLinkedList.searchByIndex(5));
        doubleLinkedList.Insert(0, 1);
        doubleLinkedList.display();

    }
}
